<?php

namespace Admin\Controller;

class IndexController extends CommonController
{
    /***
     * 后台首页
     */
    public function index()
    {
        $this->display();
    }

    /***
     * 清除缓存
     */
    public function clear()
    {
        rm_dir(RUNTIME_PATH);
        $this->success('清除缓存成功', U('Index/index'));
    }
}